Using view transforms

GLM can create many view transforms.

Camera

glm::lookAt(eye, center, up).

Orthographic projection

glm::ortho(left, right, top, bottom, zNear, zFar). Note: near and far keywords are used by many compilers!

Perspective projection

glm::perspective(fovY, aspect, zNear, zFar). This projection includes the needed orthographic matrix.

Note: near and far keywords are used by many compilers!